<include file="Public:header" />
<!--添加文章-->
<form id="info_form" action="{:U('Article/add')}" method="post" enctype="multipart/form-data">
<div class="pad_lr_10">
	<div class="col_tab">
		<ul class="J_tabs tab_but cu_li">
			<li class="current">{:L('article_basic')}</li>
			<li>{:L('article_seo')}</li>
		</ul>
		<div class="J_panes">
			<div class="content_list pad_10">
				<table width="100%" cellspacing="0" class="table_form">
                    <notempty name="housename">
                        <tr>
                            <th>所属楼盘 :</th>
                            <td>
                               {$house.title}
                                <input type="hidden" name="house_id" value="{$house.id}" />
                                <input type="hidden" name="model" value="{$model}" />
                            </td>
                        </tr>
                        <else/>
                        <tr>
                            <th>所属楼盘 :</th>
                            <td>
                                <span id="housename">{$house.title}</span>
                                <button class="J_showdialog" data-pic="0" data-uri="{:U('House/publicSelectHouse', array('menuid'=>$menuid))}" data-acttype="ajax" data-title="选择楼盘" data-id="select" data-width="670" data-height="500" data-boxtype="radio" data-boxname="house_id" data-val="house_id" data-displaybox="housename">选择楼盘</button>
                                <input type="hidden" name="house_id" id="house_id" value="{$house.id}">
                                <input type="hidden" name="model" id="model" value="{$model}" />
                            </td>
                        </tr>
                    </notempty>
					<tr>
						<th width="120">{:L('article_cateid')} :</th>
						<td>
                            <select class="J_cate_select mr10" data-pid="0" data-uri="{:U('ArticleCate/ajax_getchilds')}" data-selected=""></select>
                            <input type="hidden" name="cate_id" id="J_cate_id" value="" />
                        </td>
					</tr>
		            <tr>
						<th>{:L('article_title')} :</th>				
						<td>
							<input type="text" name="title" id="J_title" class="input-text" size="50">
					        <!--input type="hidden" value="" name="color" id="J_color">
					        <a href="javascript:;" class="color_picker_btn"><img class="J_color_picker" data-it="J_title" data-ic="J_color" src="__IMG__/color.png"></a-->
		                </td>
					</tr>
                    <tr>
                        <th>来源:</th>
                        <td><input type="text" name="comefrom" id="comefrom" class="input-text" size="20" /></td>
                    </tr>
                    <tr>
						<th>缩略图:</th>
						<td><input type="file" name="img" id="img" class="input-text"  style="width:200px;" /></td>
		 			</tr>

					<tr>
						<th>发布状态 :</th>
		 				<td>
                            <select  name="status">
                                <volist name='status_list' id='vo'>
                                    <option value="{$key}">{$vo}</option>
                                </volist>
                            </select>
						</td>
					</tr>
                    <tr>
                        <th>简介 :</th>
                        <td>
                            <textarea style="width:800px;height:80px;resize: none;" name="desc"></textarea>
                        </td>
                    </tr>
		            <tr>
						<th>详细内容 :</th>
		                <td><script id="info" name="info" type="text/plain"></script></td>
					</tr>
				</table>
			</div>
			<div class="content_list pad_10 hidden">
				<table width="100%" cellspacing="0" class="table_form">
					<tr>
						<th width="120">{:L('seo_title')} :</th>
		 				<td><input type="text" name="seo_title" id="seo_title" class="input-text" size="60"></td>
					</tr>
					<tr>
						<th>{:L('seo_keys')} :</th>
						<td><input type="text" name="seo_keys" id="seo_keys" class="input-text" size="60"></td>
					</tr>
					<tr>
						<th>{:L('seo_desc')} :</th>
						<td><textarea name="seo_desc" id="seo_desc" cols="80" rows="8"></textarea></td>
					</tr>
				</table>
			</div>

        </div>
		<div class="mt10"><input type="submit" value="{:L('submit')}" id="dosubmit" name="dosubmit" class="btn btn_submit" style="margin:0 0 10px 100px;"><br /><br /><br /></div>
	</div>
</div>
</form>
<include file="Public:footer" />
<script src="__JS__/jquery/plugins/colorpicker.js"></script>
<script>
    $('.J_cate_select').cate_select('请选择');
    $(function() {
        $('ul.J_tabs').tabs('div.J_panes > div');
		//颜色选择器
		//$('.J_color_picker').colorpicker();
    });
</script>
<js file="__STATIC__/ueditor/ueditor.config.js" charset="utf-8" />
<js file="__STATIC__/ueditor/ueditor.all.min.js" charset="utf-8" />
<js file="__STATIC__/ueditor/lang/zh-cn/zh-cn.js" charset="utf-8" />
<script type="text/javascript">
    window.UEDITOR_HOME_URL='__STATIC__/ueditor/';
    window.onload=function(){
        window.UEDITOR_CONFIG.initialFrameWidth=880;
        window.UEDITOR_CONFIG.initialFrameHeight=500;
        UE.getEditor('info');
        upmoreimg();
    }
</script>
<js file="__JS__/uploadImg.js" charset="utf-8" />
</body>
</html>